package com.tamecode.bean.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FooStart {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:bean-01.xml");
        System.out.println(context.getApplicationName());
        Foo bean = context.getBean(Foo.class);
        System.out.println(bean);
    }
}
